<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/themes/bootstrap/easyui.css" />
<link type="text/css"
	href="${pageContext.request.contextPath}/themes/icon.css"
	rel="stylesheet">
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery-1.9.1.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/easyui-lang-zh_CN.js"></script>
<title>登陆</title>
</head>
<script type="text/javascript">
$(function(){
	$('#win').window({    
	    width:400,    
	    height:300,    
	    modal:true,
	    title:'登录'
	});  

	$('#confirm').linkbutton({
		onClick:function(){
			$('#ff').form('submit',{
				url:'login',
				success:function(flag){
					if(flag==0){
						$.messager.alert('提示','账号或密码错误');  
						$('#psw').textbox('clear');
					}
					if(flag==1){
						location.href="main";
					}
				}
			})
		}
	})
	
})
</script>
<body>

<div id="win">
	<form id="ff" method="post">
	<div style="margin-top: 60px;margin-left: 80px">
		账号<input name='account' id='account' class="easyui-textbox" type="text" data-options="iconCls:'icon-man',iconAlign:'left'" style="width:180px"> <br/><br/>
		密码<input name='psw' id='psw' class="easyui-textbox" type="password" data-options="iconCls:'icon-lock',iconAlign:'left'" style="width:180px"> <br/><br/>
		<div style="margin-left: 50px">
			<a id="confirm" href="#" class="easyui-linkbutton" style="width: 120px">确认</a>  		
		</div>
	</div>
	</form>
</div>  


</body>
</html>